package com.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 部门表
 * </p>
 *
 * @author rick
 * @since 2022-12-13 11:23:15
 */
@Getter
@Setter
@TableName("wk_admin_dept")
@ApiModel(value = "AdminDept对象", description = "部门表")
public class AdminDept implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "dept_id", type = IdType.AUTO)
    private Integer deptId;

    @ApiModelProperty("父级ID 顶级部门为0")
    @TableField("pid")
    private Integer pid;

    @ApiModelProperty("部门名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("排序 越大越靠后")
    @TableField("num")
    private Integer num;

    @ApiModelProperty("部门备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty("部门负责人")
    @TableField("owner_user_id")
    private Long ownerUserId;


}
